<!DOCTYPE html>
<html>

<head lang="en">
    <title>骡窝日报</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/plugins/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/plugins/jquery/jquery.min.js"></script>
    <script src="/js/plugins/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/news.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/jquery-confirm/css/jquery-confirm.css">
    <script src="/js/plugins/jquery-confirm/js/jquery-confirm.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script src="/js/common.js"></script>

</head>
<script>
    $(function () {
        //显示日报
        $.get('/news', function (data) {
            $('#news').renderValues(data, {
                'getAddress': function (item, value) {
                    var add = $(item).data('href');
                    $(item).attr('href', add + value);
                }
            });
        });

        var params = getParams();


    })
</script>
<body>


<div class="search-head">
    <div class="row nav-search">
        <div class="col-2">
            <a href="index.html">
                <span><i class="fa fa-chevron-left fa-2x"></i></span>
            </a>
        </div>
        <div class="col-10">
            <div class="input-group-sm search">
                <input class="form-control searchBtn" placeholder="搜索资讯">
            </div>
        </div>
    </div>
</div>

<div class="container news">

    <div class="news">
        <h6 class="news-title">骡窝日报 </h6>
        <div id="news">
            <div class="row" render-loop="list">
                <div class="col-6">
                    <a data-href="newsContent.html?newsId=" render-key="list.id" render-fun="getAddress">
                        <img class="rounded" width="100%" height="110px"
                             render-src="list.coverUrl">
                    </a>
                    <div class="caption">
                        <p>
                            <span> </span>
                            <input type="hidden" render-val="list.id" id="id"/>
                            <i class="fa fa-star-o" style="color: red" id="collectBtn"
                               render-html="list.collectCount"></i>
                        </p>
                        <p render-html="list.commendTime"></p>
                        <a data-href="newsContent.html?newsId=" render-key="list.id" render-fun="getAddress">
                            <p render-html="list.title"></p>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>